'''
Created on 2013-6-18

@author: hanjiewu
'''
import MySQLdb

def main():
    db = MySQLdb.connect(host="127.0.0.1", user='root', passwd='860728', db='mysql', port=3307)
    cursor = db.cursor()
    cursor.execute('select Host,User from user')
    rows = cursor.fetchall()
    for Host, User in rows:
        print '%s : %s' % (Host, User)
if __name__ == '__main__':
    #main()
    lists = [('a', 'b'), ('c', 'd')]
    for a,b in lists:
        print a,b
    